import { useEffect } from "react"
import axios from "../../utils/request"
import c_fetch from "../../c_fetch"
const Personal = () => {
    // useEffect( async () => {
    //     const data = await axios('/api/personal', {method: 'POST'})
    //     console.log("jjjjjjjjjjjjjjjjjjjjjjj",data)
    // }, [])
    useEffect(async () => {
        const data = await c_fetch('/api/test', { method: 'GET' }).then(response => response.json())
        // fetch('https://www.marketup.cn/open/api/v1/chat/companyInfo').then(response => response.json())
        console.log('c_fetch>>>>>>>>>>>', data);
    }, [])

    useEffect(async () => {
        const data = await axios('/api/test', { method: 'GET' })
        
        console.log('axios>>>>>>>>>>>', data);
    }, [])
    return (
        <div>person cebnter</div>
    )
}
export default Personal